import { Message } from '@arco-design/web-vue';
import { useStore } from '@/stores';

export default function useUser() {
    const stores = useStore();
    const logout = (path?: string) => {
        stores.auth = undefined;
        stores.user = undefined;
        stores.shop = undefined;
        window.location.href = '/signin';
    };
    return {
        logout
    };
};